<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:component>
            <fieldset class="formFileUpload">
                <legend>Load project from xml file</legend>
                <h:form id="idFrmUpldFl" enctype="multipart/form-data">
                    <h:panelGrid columns="1" class="fileUploadElement">
                        <t:inputFileUpload id="idFlUpldFrm" accept="text/xml" value="#{projectBean.uploadedXML}" binding="#{projectBean.uploadFileUIComponent}">
                        </t:inputFileUpload>
                        <h:message for="idFlUpldFrm"/>
                        <h:commandButton value="Load the file" action="#{projectBean.upload}" />
                        <h:message for="idFrmUpldFl" />
                    </h:panelGrid>
                </h:form>
            </fieldset>
        </ui:component>
    </h:body>
</html>

